<?php
/* Smarty version 3.1.31, created on 2018-05-12 19:18:50
  from "D:\wamp64\www\wanju\views\adv\edit.html" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.31',
  'unifunc' => 'content_5af6cd9a224c98_03952156',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'e0ae34195b6a3a7a73930ad2c22c55bdb26d6f9e' => 
    array (
      0 => 'D:\\wamp64\\www\\wanju\\views\\adv\\edit.html',
      1 => 1526123927,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5af6cd9a224c98_03952156 (Smarty_Internal_Template $_smarty_tpl) {
?>

  <div class="x_panel">
    <div class="x_content row">
      <div class="col-xs-12">
        <form class="form-horizontal form-label-left" action="<?php echo $_smarty_tpl->tpl_vars['actionUrl']->value;?>
" method="post" enctype="multipart/form-data">
          <div class="form-group">
            <label class="control-label col-md-2 col-sm-4 col-xs-12">广告标题：</label>
            <div class="checkbox col-md-10 col-sm-8 col-xs-12">
              <input class="form-control col-md-3 col-xs-12" required="required" type="text" name="form[title]" value="<?php echo $_smarty_tpl->tpl_vars['adv']->value['title'];?>
">
            </div>


            <label class="control-label col-md-2 col-sm-4 col-xs-12">图片：</label>
            <div class="col-md-10 col-sm-12 com-xs-12">
              <img style="width:100px;height:100px;" src="<?php echo $_smarty_tpl->tpl_vars['pic']->value;?>
"/>
              <input type="file" name="pic">
            </div>
            <label class="control-label col-md-2 col-sm-4 col-xs-12">内容：</label>
            <div class="col-md-10 col-sm-9 col-xs-12">
              <textarea rows="20" id="J_detail" name="form[content]">
                  <?php echo $_smarty_tpl->tpl_vars['adv']->value['content'];?>

              </textarea>
            </div>

          </div>
          <div class="col-md-3 col-sm-12 col-xs-12 col-md-offset-4 col-sm-offset-4">
            <input name="ad_id" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['adv']->value['ad_id'];?>
">
            <button class="btn btn-primary" type="submit">更新</button>
          </div>
        </form>
      </div>
    </div>
  </div>

  <?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['theme']->value;?>
/js/source/ueditor/ueditor.config.js"><?php echo '</script'; ?>
>
  <?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['theme']->value;?>
/js/source/ueditor/ueditor.all.min.js"><?php echo '</script'; ?>
>
  <?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['theme']->value;?>
/js/source/ueditor/lang/zh-cn/zh-cn.js"><?php echo '</script'; ?>
>
  <?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['theme']->value;?>
/js/source/layer/layer.js"><?php echo '</script'; ?>
>
  <?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['theme']->value;?>
/libs/js/select/select2.full.js"><?php echo '</script'; ?>
>
  <?php echo '<script'; ?>
>
      window.UEDITOR_CONFIG.initialFrameHeight = 320;

      UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
      UE.Editor.prototype.getActionUrl = function(action) {
          if (action == 'uploadimage' || action == 'uploadscrawl' || action == 'uploadimage') {
              return '/index/upload.html';
          } else {
              return this._bkGetActionUrl.call(this, action);
          }
      }
      var detailUe = UE.getEditor('J_detail');
  <?php echo '</script'; ?>
><?php }
}
